<?php
class FrontEndController extends RController
{
    public $layout='//layouts/column1';
    public $menu = array();
    
    public $pageDescription;
    public $pageKeywords;
    
    public $leftSidebar;


    public function beforeRender()
    {
        if (empty($this->pageDescription))
        {
            $this->pageDescription = Yii::app()->params['description'][Yii::app()->language];
        }

        if (empty($this->pageKeywords))
        {
            $this->pageKeywords = Yii::app()->params['keywords'][Yii::app()->language];
        }

        Yii::app()->clientScript->registerMetaTag($this->pageDescription, 'description');
        Yii::app()->clientScript->registerMetaTag($this->pageKeywords, 'keywords');
        return true;
    }
    
}
?>